package com.fbs.job.admin.service;

import com.fbs.job.admin.core.entity.FbsJobUser;
import com.fbs.job.core.model.ResultT;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Date;
import java.util.Map;


public interface JobUserService {

    public static final String LOGIN_IDENTITY_KEY = "FBS_JOB_LOGIN_IDENTITY";
    FbsJobUser ifLogin(HttpServletRequest request, HttpServletResponse response);
    ResultT login(HttpServletRequest request, HttpServletResponse response, String username, String password, boolean ifRemember);

    ResultT logout(HttpServletRequest request, HttpServletResponse response);

    Map<String, Object> dashboardInfo();

    ResultT<Map<String, Object>> chartInfo(Date startDate, Date endDate);
}
